<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');

    $router->group(['prefix' => 'business', 'namespace' => 'Business'], function (Router $router) {
        //用户
        $router->get("customer", "CustomerController@index");
        //物品
        $router->get("goods", "GoodsController@index");
    });
});
